from django.urls import path
from . import views

app_name = 'comment'

urlpatterns = [
    # 发表评论
    # 评论必须关联在某篇具体的博文里，因此传入博文的id，方便后续调用。
    # post_comment()视图还没写，先取个名字占位置
    path('post-comment/<int:article_id>/', views.post_comment, name='post_comment'),
    path('delete-comment/<int:comment_id>/', views.delete_comment, name='delete_comment'),
     # 新增代码，处理二级回复
    path('post-comment/<int:article_id>/<int:parent_comment_id>', views.post_comment, name='comment_reply'),
    path('notifications/', views.NotificationListView.as_view(), name='notification_list'),

]